package com.bing.habit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bing.habit.entity.Habit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HabitDAO extends BaseMapper<Habit> {
    Habit findByUidAndName(@Param("uid") int uid, @Param("habitName") String habitName);
    List<Habit> findAllByUid(@Param("uid") int uid);

}
